package com.tedu._04mybatis.mapper;

import com.tedu._04mybatis.pojo.Weibo;
import com.tedu._04mybatis.pojo.WeiboVO1;
import com.tedu._04mybatis.pojo.WeiboVO2;
import org.apache.ibatis.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Mapper
public interface WeiboMapper {
    int insert(Weibo weibo);
    int deleteById(Integer id);
    int updateById(Weibo weibo);
    Weibo SelectById(Integer id);

    List<Weibo> selectAll();
    WeiboVO1 selectWeiboVo1ById(Integer id);

   List<WeiboVO2> selectWeiboVO2();
}
